package com.huiminpay.merchant.convert;

import com.huiminpay.merchant.entity.Staff;
import com.huiminpay.merchant.entity.Store;
import com.yh.merchant.dto.StaffDTO;
import com.yh.merchant.dto.StoreDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: HWW
 * @Date: 2021/8/2615:32
 * @Desc:
 */
@Mapper
public interface StaffConvert {

    StaffConvert INSTANCE = Mappers.getMapper(StaffConvert.class);

    StaffDTO entity2dto(Staff staff);

    Staff dto2entity(StaffDTO staffDTO);

    List<StaffDTO> entityList2dtoList(List<Staff> list);

    List<Staff> dtoList2entityList(List<StaffDTO> list);
}
